package org.ucas.faker.web.service.Visualization.entity;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;

import java.util.ArrayList;
import java.util.List;

public  class SeriesParam<T> {

    public class Option{



        private double maxValue = 0;
        private double minValue = 0;
        private List<Double> percentageData = new ArrayList<Double>();
        private Symbol symbol = new Symbol();

        public Symbol getSymbol() {
            return symbol;
        }

        public void setSymbol(Symbol symbol) {
            this.symbol = symbol;
        }

        public double getMaxValue() {
            return maxValue;
        }

        public void setMaxValue(double maxValue) {
            this.maxValue = maxValue;
        }

        public double getMinValue() {
            return minValue;
        }

        public void setMinValue(double minValue) {
            this.minValue = minValue;
        }

        public List<Double> getPercentageData() {
            return percentageData;
        }

        public void setPercentageData(List<Double> percentageData) {
            this.percentageData = percentageData;
        }
    }

    private String graphType = "";
    private String seriesName = "";
    private List<T> dataList = new ArrayList<T>();
    private List<T[]> multiDimentionData = new ArrayList<T[]>();
    private JSONArray label = new JSONArray();
    private Option option = new Option();

    public String getGraphType() {
        return graphType;
    }

    public void setGraphType(String graphType) {
        this.graphType = graphType;
    }

    public String getSeriesName() {
        return seriesName;
    }

    public void setSeriesName(String seriesName) {
        this.seriesName = seriesName;
    }

    public List<T[]> getMultiDimentionData() {
        return multiDimentionData;
    }

    public void setMultiDimentionData(List<T[]> multiDimentionData) {
        this.multiDimentionData = multiDimentionData;
    }

    public List<T> getDataList() {
        return dataList;
    }

    public void setDataList(List<T> dataList) {
        this.dataList = dataList;
    }

    public JSONArray getLabel() {
        return label;
    }

    public void setLabel(JSONArray label) {
        this.label = label;
    }

    public Option getOption() {
        return option;
    }

    public void setOption(Option option) {
        this.option = option;
    }

}
